package ws.rest.books;

import java.util.ArrayList;
import java.util.Map;

import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="books")
public class BookList {
	@XmlElementRef
	ArrayList<Book> books;
	
	public BookList(){}
	
	public BookList(Map<Integer,Book> bookMap){
		books = new ArrayList<Book> (bookMap.values());
	}
}
